<%-- $RCSFile: CRMImageBookEdit.aspx $
 Apache license v2 2011 by Christian Surieux
 $Source: ?/AddonNice.ImageManager/PageModules/CRMImageBook/CRMImageBookEdit.aspx $
 $log$
 Revision 7 2010/08/09 10:56:46  christian.surieux
   Added Log comment to all .aspx .ascx .master files
 --%>
<%@ Page Language="c#" AutoEventWireup="False" Inherits="AddonNice.PageModules.CRMImage.CRMImageBookEdit" MasterPageFile="~/MasterPages/CrmImagesMaster.Master"  Codebehind="CRMImageBookEdit.aspx.cs" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
     <asp:Label ID="PageTitleLabel" runat="server" Height="22"></asp:Label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderButtons2" runat="server">
    <asp:PlaceHolder ID="PlaceHolderButtons2" runat="server"></asp:PlaceHolder>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ImageContent" runat="server">
    <asp:ScriptManagerProxy ID="SCMPImageBookEdit" runat='server' />
    <telerik:radprogressmanager id="Radprogressmanager1" runat="server" />
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
    function OnClientFileSelectedHandler(sender, eventArgs)
    {
       var input = eventArgs.get_fileInputField();
       var img = document.getElementById('<%= Img2Edit.ClientID %>');
       if (img)
       {
           img.style.visibility = "";
           img.src = input.value;
       }
    }
    </script>       
    </telerik:RadScriptBlock>
<div style="float:left;width: 100%" >
    <asp:Label ID="PageTitleCreate"  CssClass="PropertyTitle" runat="server" />
</div>
<div style="float:left;width: 460px" >
    <div style="margin-top:10px">
    <telerik:RadTabStrip ID="RadTabStrip2" runat="server" MultiPageID="RadMultiPage2" SelectedIndex='0' Width='100%'>
        <Tabs>
            <telerik:RadTab runat="server" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_FILE %>" PageViewID='FilePageView' />
            <telerik:RadTab runat="server" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_PARAMETERS %>" PageViewID='ImageParameters'/>
        </Tabs>
    </telerik:RadTabStrip>
    <div style="margin-top:10px">
    <telerik:RadMultiPage ID="RadMultiPage2" Runat="server" SelectedIndex='0' Width='100%'>
        <telerik:RadPageView ID="FilePageView" runat="server" >
            <telerik:RadUpload ID="RadUpload1" runat="server" OnClientFileSelected="OnClientFileSelectedHandler" /><br />
            <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_BULK_LOAD_FORMAT %>" runat="server" ID="BulkFormatLiteral" /><br />
            <asp:TextBox ID="BulkFormat" runat="server" MaxLength="255" Width="80%"  />
        </telerik:RadPageView>
        <telerik:RadPageView ID="ImageParameters" runat="server" >
            <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_FLIP %>" runat="server" ID="Literal2" /><br />
            <telerik:RadComboBox ID="selFlip" Width="215px" runat="server" >
                <Items>
                    <telerik:RadComboBoxItem Value="None" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURE_NONE1%>" Selected="True" />
                    <telerik:RadComboBoxItem Value="X" Text='X' />
                    <telerik:RadComboBoxItem Value="Y" Text='Y' />
                    <telerik:RadComboBoxItem Value="XY" Text='XY' />
                 </Items>
            </telerik:RadComboBox><br />
            <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_ROTATE %>" runat="server" ID="Literal3" /><br />
            <telerik:RadComboBox ID="selRotate" runat="server" Width="215px" >
                <Items>
                    <telerik:RadComboBoxItem Value="None" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURE_NONE2%>" Selected="True" />
                    <telerik:RadComboBoxItem Value="90" Text='90' />
                    <telerik:RadComboBoxItem Value="180" Text='180' />
                    <telerik:RadComboBoxItem Value="270" Text='270' />
                </Items>
            </telerik:RadComboBox>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    </div>
    </div>
</div>
<div style="position:relative; top:0; left:0; " >
    <asp:Image id='Img2Edit'  runat="server" style="min-width:200px;" /><br />
    <telerik:RadProgressArea ID="RadProgressArea1" Runat="server" />
</div>
<br style='clear:both;' />
<div style="float:left;width: 100%" >
    <telerik:RadTabStrip ID="RadTabStrip3" runat="server" MultiPageID="RadMultiPage3" SelectedIndex='0' style="width:100%">
        <Tabs>
            <telerik:RadTab runat="server" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_SHORT_DESCRIPTION %>"  PageViewID='RadPageView1' />
            <telerik:RadTab runat="server" Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_LONG_DESCRIPTION %>"  PageViewID='RadPageView2'/>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage3" Runat="server" SelectedIndex='0' style="width:100%">
        <telerik:RadPageView ID="RadPageView1" runat="server" >
            <br style='clear:left;' />
            <div style="float:left;width: 460px" >
            <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_CAPTION %>" runat="server" ID="Literal4" />
            <asp:TextBox ID="Caption" runat="server" MaxLength="255" style="width:350px; margin-left:10px" />
            </div>
            <div style="float:right;min-width:240px;" >
                <telerik:RadComboBox ID="RadComboCat" style="min-width:240px;" runat="server" />
            </div>
            <br style='clear:left;' /><br />
            <div style="float:left;width: 460px" >
                    <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_ORDER %>" runat="server" ID="OrderLiteral" />
                    <telerik:RadNumericTextBox ID="Order" Runat="server" MaxLength="3" MaxValue="999" MinValue="0" ShowSpinButtons="True" style="margin-left:20px" >
                        <NumberFormat AllowRounding="True" decimaldigits="0"></NumberFormat>
                    </telerik:RadNumericTextBox>
            </div>
            <div style="float:right;min-width:240px;" >
                <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_KEYWORDS %>" runat="server" ID="Literal1" />
                <asp:TextBox ID="KeyWords" runat="server" MaxLength="255" style="min-width:240px; margin-left:10px" />
            </div>
            <br style='clear:left;' /><br />
            <asp:Literal Text="<%$ Resources:ResourcesIMGMAN|ResourcesIMG,PICTURES_SHORT_DESCRIPTION %>" runat="server" ID="Literal6" /><br />
            <br style='clear:left;' />
            <telerik:radeditor runat="server" ID="RadEditorSD" Height='200px' style="width:100%;">
               <Tools>
                <telerik:EditorToolGroup >
                    <telerik:EditorTool Name="Cut" />
                    <telerik:EditorTool Name="Copy" />
                    <telerik:EditorTool Name="SelectAll" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="Paste" />
                    <telerik:EditorTool Name='Bold' />
                    <telerik:EditorTool Name='Italic' />
                    <telerik:EditorTool Name='Underline' />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="FontName" />
                    <telerik:EditorTool Name="FontSize" />
                    <telerik:EditorTool Name='ForeColor' />
                    <telerik:EditorTool Name='BackColor' />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="ConvertToLower" />
                    <telerik:EditorTool Name='ConvertToUpper' />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name='DocumentManager' />
                    <telerik:EditorTool Name='ImageManager' />
                    <telerik:EditorTool Name='FlashManager' />
                    <telerik:EditorTool Name='SilverlightManager' />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name='SpellCheck' />
                </telerik:EditorToolGroup>
               </Tools>     
               <Content></Content>
            </telerik:radeditor>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            <telerik:radeditor runat="server" ID="RadEditorLD" ToolProviderID='RadEditorSD' style="width:100%;">
               <Tools>
                <telerik:EditorToolGroup >
                    <telerik:EditorTool Name="Cut" />
                    <telerik:EditorTool Name="Copy" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="Paste" />
                    <telerik:EditorTool Name='Bold' />
                    <telerik:EditorTool Name='Italic' />
                    <telerik:EditorTool Name='Underline' />
                </telerik:EditorToolGroup>
               </Tools>     
               <Content></Content>
            </telerik:radeditor>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
</div>
</asp:Content>
<asp:Content ContentPlaceHolderID='ContentPlaceHolderMessage' ID="ContentMessage" runat='server' EnableViewState='false'>
   <asp:Label ID="Message" runat="server" ForeColor="Red" CssClass="Error" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderButtons1" runat="server">
<br />
    <asp:PlaceHolder ID="PlaceHolderButtons" runat="server"></asp:PlaceHolder>
</asp:Content>
